import request from '@/utils/request'

// 查询树洞内容列表
export function listEntries(query) {
  return request({
    url: '/system/entries/list',
    method: 'get',
    params: query
  })
}

// 查询树洞内容详细
export function getEntries(entryId) {
  return request({
    url: '/system/entries/' + entryId,
    method: 'get'
  })
}

// 新增树洞内容
export function addEntries(data) {
  return request({
    url: '/system/entries',
    method: 'post',
    data: data
  })
}

// 修改树洞内容
export function updateEntries(data) {
  return request({
    url: '/system/entries',
    method: 'put',
    data: data
  })
}

// 删除树洞内容
export function delEntries(entryId) {
  return request({
    url: '/system/entries/' + entryId,
    method: 'delete'
  })
}
